/*
 * @Author: xiaosihan 
 * @Date: 2023-08-10 11:24:00 
 * @Last Modified by: xiaosihan
 * @Last Modified time: 2023-11-25 10:20:03
 */

.toolFontFamily {
    position: relative;
    height: 30px;
    width: 140px;
    border-radius: 4px;
    text-align: center;
    line-height: 36px;
    margin: 5px;
    cursor: pointer;
    display: none;
    overflow: hidden;
    vertical-align: middle;
    border: 1px solid #B3B3B3;

    &.visible {
        display: inline-block;
    }

    &.disable {
        pointer-events: none;
        opacity: 0.5;
    }

    .fontImg {
        max-width: 120px;
        line-height: 40px;
    }

}

.fontFamily {
    width: 140px;
    height: 300px;
    background-color: #ffffff;
    overflow-x: hidden;
    overflow-y: auto;

    &::-webkit-scrollbar {
        width: 2px;
        height: 2px;
        background-color: rgba(0, 0, 0, 0);
    }

    &::-webkit-scrollbar-track {
        box-shadow: inset 0 0 6px rgba(0, 0, 0, 0);
        border-radius: 2px;
        background-color: rgba(0, 0, 0, 0);
    }

    &::-webkit-scrollbar-thumb {
        border-radius: 2px;
        box-shadow: inset 0 0 6px rgba(0, 0, 0, .3);
        background-color: #1890ff;
    }

    .fontFamilyItem {
        cursor: pointer;
        height: 30px;
        line-height: 30px;

        &:hover {
            background-color: #f5f7fa;
        }

        &.active {
            background-color: #f0f2f5;
        }


        .img {
            display: inline-block;
            width: 120px;
        }
    }

}